package mapper;
import entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface UserMapper {
    User selectById(Integer userId);
    List<User> selectAll();
    int insert(User user);
    int update(User user);
    int delete(Integer userId);
    User selectByUsername(String username);
    User findByUsername(@Param("username") String username);

}